
public class EnginePart extends Part
{
	
	final static String CATEGORY = "Engine";
	final static int CATEGORY_CODE = 2;

	public EnginePart(int code, String title, double buyPrice, String manufactory) {
		super(code, title, buyPrice, manufactory);
	}

	public static String getCategory() {
		return CATEGORY;
	}

	public static int getCategoryCode() {
		return CATEGORY_CODE;
	}

	
	@Override
	public void partInfo() 
	{
		System.out.println(CATEGORY + " Part");
		System.out.println("Category Code: " + CATEGORY_CODE);
		super.partInfo();
	}
}
